package cn.ayanami.blog.system.constant;

public class CommonConstant {
    private  CommonConstant(){}

    public static final int SC_OK_200 = 200;
    


    public enum REQUEST_CODE {
        SUCCESS("SUCCESS",200),
        NOT_FOUND("NOT_FOUND", 404), NO_AUTH("NO_AUTH", 401), INTERNAL_ERROR("INTERNAL_ERROR", 500),
        BAD_GATEWAY("BAD_GATEWAY", 502);

        private String name;
        private int value;

        private REQUEST_CODE(String name, int value) {
            this.name = name;
            this.value = value;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

    }
}
